package com.pureut.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pureut.system.domain.SampleRequest;
import com.pureut.system.domain.dto.SampleRequestDetailDto;
import com.pureut.system.domain.dto.SampleRequestInitDto;
import com.pureut.system.domain.dto.SampleRequestPagesDto;
import com.pureut.system.domain.vo.MaterialCertificationApplicationVo;
import com.pureut.system.domain.vo.SampleRequestVo;

import java.util.List;

/**
 * @Author: pureut
 * @Date: 2024-12-04 15:44:26
 * @Desc: 样品申请
 */
public interface ISampleRequestService extends IService<SampleRequest> {

    /**
     * 分页查询
     * @param sampleRequestVo
     * @return
     */
    List<SampleRequestPagesDto> queryPage(SampleRequestVo sampleRequestVo);

    /**
     * 新增样品申请
     * @param sampleRequestVo
     * @return
     */
    Boolean save(SampleRequestVo sampleRequestVo);


    /**
     * 更新样品申请
     * @param sampleRequestVo
     * @return
     */
    Boolean updateById(SampleRequestVo sampleRequestVo);

    /**
     * 获取样品申请 初始化信息
     * @return
     */
    SampleRequestInitDto infoInit();

    /**
     * 获取样品申请详细信息
     * @param id
     * @return
     */
    SampleRequestDetailDto getInfoById(Long id);

    Boolean examine(MaterialCertificationApplicationVo materialCertificationApplicationVo);
}

